#pragma once
#include<QtGui>
class QImageShower :public QWidget
{
	Q_OBJECT
public:
	QImageShower(QWidget* parent=0);
	~QImageShower();
	//void loadImageAndShow(const QString & str);
private:
	//void loadImage(const QString & str);
	//void showImage();
	void getImageRect();
	bool hasImage;
	//QPixmap pixmapToShow;
	QRect imageRect;
	QImage image;
public slots:
	void rowSelected(QString );
protected:
	void paintEvent(QPaintEvent *event);
	void resizeEvent(QResizeEvent *event);
};

